/********************************************
 * 功能说明: 
 * 模块名称: 
 * 系统名称: 
 * 软件版权: Frank
 * 系统版本: 1.0.0
 * 开发人员: Frank
 * 开发时间: 2019/12/24 18:38
 * 审核人员: 
 * 相关文档: 
 * 修改记录: 修改日期 修改人员 修改说明
 *********************************************/
package com.spring.arch.uaa.client;

import com.spring.arch.common.dto.result.ResultDTO;
import com.spring.arch.uaa.dto.ProjectDatasourceDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @author Frank
 * @version 1.0.0
 * @since 2019/12/24 18:38
 */
@FeignClient(value = "${service.uaa}", path = "/uaa/w/projectDatasource", fallback = ProjectDatasourceClientHystric.class)
public interface ProjectDatasourceClient {

    @PutMapping(value = "/{schema}")
    ResultDTO<ProjectDatasourceDTO> update(@PathVariable(value = "schema") final String schema, @RequestBody @Valid final ProjectDatasourceDTO projectDatasourceDTO);
}
